# -*- coding: utf-8 -*-
from Page.noscanningPage import noscanningPage
from publicModule.switchclass import switchclass
import time
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.webdriver import ActionChains
class planmaintenence():
    def __init__(self,driver):
        self.driver = driver
        self.noscanningPage = noscanningPage(self.driver)
        self.switchclass = switchclass(self.driver)
    def plan1(self,policyNo):
        self.driver.switch_to.default_content()
        self.driver.switch_to.frame("fraInterface")
        time.sleep(2)
        self.noscanningPage.policy_num().send_keys(policyNo)
        time.sleep(1)
        self.noscanningPage.btnQuery().click()
        time.sleep(1)
        self.noscanningPage.radioChoose().click()
        time.sleep(1)
        self.noscanningPage.btnGoto().click()
        time.sleep(1)

